*** How do subjects react to past behavior in own group? ***
set more off
cd "${dropbox}/good guys/paper/data_code"

tempfile oct

use gbc_s3, clear

keep if inlist(treatment,2,4)
gen t=treatment/2
keep t id profile
tsset id t

gen profile2=l.profile
lab val profile2 types
lab var profile2 "Part II profile"


save `oct'



** Use data from both March and October
use gbc_s2, clear


 gen t=1 if treatment==2
 replace t=2 if treatment==4 & Period==5
 keep if !mi(t)
keep t id profile
 
tsset id t

gen profile2=l.profile
lab val profile2 types
lab var profile2 "Part II profile"


	
append using `oct'
tab profile2 profile, row nof
